home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jazlib.arc / JZDIRECT.H < prev    next >
Text File  |  1988-12-18  |  1KB  |  37 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │jzdirect.h                                     │
  4. │Provide a nucleus of structures to hold the directory information         │
  5. │                                         │
  6. │See dirlst.dmo for examples                             │
  7. │                                         │
  8. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950              │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10. */
  11.  
  12. /* misc directory structures */
  13.  
  14. struct tdirtime {
  15.   unsigned secs      : 5; /* time in 2 sec. int (5 bits)*/
  16.   unsigned mins      : 6; /* minutes (6 bits)        */
  17.   unsigned hours     : 5; /* hours (5 bits)        */
  18. };
  19.  
  20. struct tdirdate {
  21.   unsigned day         : 5; /* day of month (5 bits)    */
  22.   unsigned month     : 4; /* month (4 bits)        */
  23.   unsigned year      : 7; /* year since 1980 (7 bits)    */
  24. };
  25.  
  26. struct tdir
  27. {
  28.   char       dirfiller[21];
  29.   unsigned char attr;               /* file attribute */
  30.   struct tdirtime time;            /* creation time  */
  31.   struct tdirdate date;            /* creation date  */
  32.   long       size;               /* file size     */
  33.   char       name[13];           /* file name     */
  34. };
  35. #define TDIR struct tdir
  36.  
  37.